package com.tmeone.erpone.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tmeone.erpone.entity.TMoveWarehouse;
import com.tmeone.erpone.service.TMoveWarehouseService;
import com.tmeone.erpone.mapper.TMoveWarehouseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class TMoveWarehouseServiceImpl extends ServiceImpl<TMoveWarehouseMapper, TMoveWarehouse>
        implements TMoveWarehouseService{
    @Autowired
    TMoveWarehouseMapper moveWarehouseMapper;

    /**
     * 查询所有移库记录
     * 带分页
     * 作者：wzs
     * @param current 分页，当前页
     * @param size 分页，每页行数
     * @return 移库记录
     */
    @Override
    public IPage<TMoveWarehouse> selectAll(long current,long size) {
        Page<TMoveWarehouse> page = new Page<>(current,size);
        return moveWarehouseMapper.selectAll(page);
    }
}




